package com.jungle.bfi.enums.converter;

import com.jungle.bfi.enums.BookingDirection;

//@Converter(autoApply = true)
public class BookingDirectionConverter /*implements AttributeConverter<BookingDirection, Integer>*/ {
    //@Override
    public Integer convertToDatabaseColumn(BookingDirection attribute) {
        return attribute.code();
    }

    //@Override
    public BookingDirection convertToEntityAttribute(Integer dbData) {
        return BookingDirection.codeOf(dbData);
    }
}
